	function createForm(rows){
		//$("#spreadContainer");
		
		//获得标头有多少个航空公司和渠道
		var companyNum = rows[0].contrastList.length+1;
		var nativeCarrier = rows[0].nativeCarrier;
		//有多少天,即表格有多少行
		var totalRowNum = rows.length;
	    var tableStr = '<table width="0" border="0" cellspacing="0" cellpadding="0"	class="form_list" >'
	    	+'<tr class="title">'
		    +'<td style="text-align: center;width: 55px;">航班日期</td>'
		    +'<td style="text-align: center;width: 55px;">'+nativeCarrier+'</td>';
		
		for(var i=0; i<rows[0].contrastList.length;i++){
			tableStr  +='<td style="text-align: center;width: 55px;">'+rows[0].contrastList[i].carrierName+'</td>';
			tableStr +='<td style="text-align: center;width: 55px;">价差</td>';
			tableStr +='<td style="text-align: center;width: 55px;">价差比</td>';
		}	
		tableStr += '</tr>';
		//组织数据显示
		tableStr += '<tbody id="table2" >';
		var dataStr = '';
		for(var i=0;i<rows.length;i++){
			dataStr += '<tr>';
			dataStr += '<td class="line" style="text-align: center">' +rows[i].date + '</td>';
			if(rows[i].nativePrice != null){
				dataStr += '<td class="line" style="text-align: center">' +rows[i].nativePrice + '</td>';
				for(var j=0;j<rows[i].contrastList.length;j++){
					if(rows[i].contrastList[j].price != null){
						dataStr += '<td class="line" style="text-align: center">' +rows[i].contrastList[j].price + '</td>';
						dataStr += '<td class="line" style="text-align: center">' +rows[i].contrastList[j].spreadAmount + '</td>';
						dataStr += '<td class="line" style="text-align: center">' +rows[i].contrastList[j].spread + '</td>';
					}else{
						dataStr += '<td class="line" style="text-align: center">-</td>';
						dataStr += '<td class="line" style="text-align: center">-</td>';
						dataStr += '<td class="line" style="text-align: center">-</td>';
					}
					
				}
			}else{
				dataStr += '<td class="line" style="text-align: center">-</td>';
				for(var j=0;j<rows[i].contrastList.length;j++){
					dataStr += '<td class="line" style="text-align: center">' +rows[i].contrastList[j].price==null?'':rows[i].contrastList[j].price + '</td>';
					dataStr += '<td class="line" style="text-align: center">-</td>';
					dataStr += '<td class="line" style="text-align: center">-</td>';
				}
			}
			
		}
		tableStr += dataStr;
		tableStr += '</tbody>';
		tableStr += '</table>';	
		$("#spreadContainer").html(tableStr);
		
	}
	